﻿
// Creates a tree, a folders like structure.

var TreeApi = new function () {
    // An html container (a div element) that has all the elements of the tree.
    this.TreeContainer;

    // A JSON object with all the initial elements of the tree.
    this.TreeElements;

    // The code of the tree is stored in a folder, this is the path to that folder
    this.TreeFolderPath;

    // Create the tree and fill it with the initial elements.
    this.Create = function (TreeContainerIn, TreeElementsIn) {
        this.TreeContainer = TreeContainerIn;
        this.TreeElements = TreeElementsIn;

        this.TreeContainer.className = 'Tree';
    }
}